import React, { Component } from 'react'
import css from './index.module.css'

export default class Header extends Component {
  render() {
    console.log('Header', this.props);
    return (
      <div className={css.container}>
        <h3 className={css.title}>计算器</h3>
        <span className={css.errTip}>{this.props.errorTip}</span>
      </div>
    )
  }
}
